Tappable
Tapable with promise support.
Setup
yarn add tappable
npm install --save tappable
const Tapable = require('tappable')
Usage
For basic usage please see tapable docs.
applyPlugins*
This functions are wrapped with pify
and return promise too.
await this.applyPluginsAsync('init')
this.applyPluginsAsync('init')
.then(() => {
})
.catch(err => {
})
plugin(names, handler)
When register plugins handler
function can also return promise instead of calling callback
argument.
webpack.plugin('init', async () => {
})
webpack.plugin('init', () => new Promise((resolve, reject) => {
}))
License
MIT